/***************************************************************************
 *   Copyright (C) 2007 - 2008 by Pavel Andreev                            *
 *   Mail: apavelm on gmail point com (apavelm@gmail.com)                  *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
 
#include "stil_qdltreewidget.h"

//QHubLineEdit
QHubLineEdit::QHubLineEdit(QWidget * parent): QLineEdit(parent)
{
	
}

void QHubLineEdit::keyPressEvent(QKeyEvent *e)
{
	QLineEdit::keyPressEvent(e);
	emit sig_KeyPressEvent(e);
}

// QDLTreeWidget
QDLTreeWidget::QDLTreeWidget(QWidget * parent): QTreeWidget(parent)
{
	
}

void QDLTreeWidget::keyPressEvent(QKeyEvent *e)
{
	QTreeWidget::keyPressEvent(e);
	emit sig_KeyPressEvent(e);
}

QTreeWidgetItem* QDLTreeWidget::itemFromIndex(const QModelIndex & mi) const
{
	return QTreeWidget::itemFromIndex(mi);
}

QModelIndex QDLTreeWidget::indexFromItem(QTreeWidgetItem* it, int column) const
{
	return QTreeWidget::indexFromItem(it, column);
}

// QHubListWidget
QHubListWidget::QHubListWidget(QWidget * parent) : QListWidget(parent)
{
}

void QHubListWidget::keyPressEvent(QKeyEvent *e)
{
	QListWidget::keyPressEvent(e);
	emit sig_KeyPressEvent(e);
}
